﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace Kenly.DBFramework.Gateway
{
    /// <summary>
    /// 
    /// </summary>
    public interface IEntityValidator
    {
        /// <summary>
        /// 
        /// </summary>
        bool IsValid
        {
            get;
        }

        ///// <summary>
        ///// 
        ///// </summary>
        ///// <returns></returns>
        //IEnumerable<RuleViolation> Validate();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="violations"></param>
        /// <returns></returns>
        bool Validate(out List<RuleViolation> violations);

    }
}
